﻿@{
    ViewBag.Title = "RevenueReport";
}

<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script language="javascript" type="text/javascript">
    $(function () {
        $("form").submit(function (e) {
            $.post($(this).attr("action"),
                    $(this).serialize(),
                    function (data) {
                        $("#search-results").html(data);
                    });
            e.preventDefault();
        });
    });
</script>

<h2>Revenue Report</h2>

<div id="search-form">
    @using (Html.BeginForm("RevenueReport", "Home", FormMethod.Post))
    {
        <div>
            <table>
                <tr>
                    <td>Flight No:</td>
                    <td colspan="3">@Html.TextBox("txtFlightNo")</td>
                </tr>
                <tr>
                    <td>From:</td>
                    <td>@Html.TextBox("txtFrom")</td>
                    <td>To:</td>
                    <td>@Html.TextBox("txtTo")</td>
                </tr>
            </table>

            <input type="submit" value="Search" />
        </div>
    }
</div>
<div id="search-results">
</div>